<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>MpegDemultiplexer: CTS Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MpegDemultiplexer
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_c_t_s.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CTS Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CTS" -->
<p><a href="class_c_t_s-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#af6cb47569d32294cfb1da6247449fac9">CTS</a> (const char *chArray)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a124234226b2b9c18cea8203a412855db">~CTS</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#afbc80cd2ae05bcff17c4a1d97e382a7c">getPayload</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a780dee0a7f8d85db659dca268b8f77cb">getHeaderLength</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a827113f9e16efa1cb2db742f2394414c">getPayloadLength</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a5198228aee4a75ede47d537221c39a65">getAdaptationFieldControl</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a3a919f3c19d1ce352d544da4c64dfe5f">getPayloadStartIndicator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a82299105546b28b4886d3ccdbf276de9">getPID</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a6f44a915064fbd28b0cb6b09432276a5">getContinuityCounter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#a7c53d1c0ae7ad15d542a161aa9539522">getPCR</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#afe8671c58276fcaca8b8a343551a2010">isNextTo</a> (int ContinuityCounter)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_t_s.html#ad126218c1bd88e4a4d88c80eb8cf0d3e">getData</a> ()</td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af6cb47569d32294cfb1da6247449fac9"></a><!-- doxytag: member="CTS::CTS" ref="af6cb47569d32294cfb1da6247449fac9" args="(const char *chArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_t_s.html#af6cb47569d32294cfb1da6247449fac9">CTS::CTS</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>chArray</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>c'tor </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">chArray-</td><td>a pointer to the TS data. it will be copied by the c'tor to the class's data array (m_data) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a124234226b2b9c18cea8203a412855db"></a><!-- doxytag: member="CTS::~CTS" ref="a124234226b2b9c18cea8203a412855db" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_t_s.html#a124234226b2b9c18cea8203a412855db">CTS::~CTS</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>d'tor </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5198228aee4a75ede47d537221c39a65"></a><!-- doxytag: member="CTS::getAdaptationFieldControl" ref="a5198228aee4a75ede47d537221c39a65" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a5198228aee4a75ede47d537221c39a65">CTS::getAdaptationFieldControl</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the adaptation_field_control field of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="a6f44a915064fbd28b0cb6b09432276a5"></a><!-- doxytag: member="CTS::getContinuityCounter" ref="a6f44a915064fbd28b0cb6b09432276a5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a6f44a915064fbd28b0cb6b09432276a5">CTS::getContinuityCounter</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the continuty_counter field of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="ad126218c1bd88e4a4d88c80eb8cf0d3e"></a><!-- doxytag: member="CTS::getData" ref="ad126218c1bd88e4a4d88c80eb8cf0d3e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * <a class="el" href="class_c_t_s.html#ad126218c1bd88e4a4d88c80eb8cf0d3e">CTS::getData</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to the payload of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="a780dee0a7f8d85db659dca268b8f77cb"></a><!-- doxytag: member="CTS::getHeaderLength" ref="a780dee0a7f8d85db659dca268b8f77cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a780dee0a7f8d85db659dca268b8f77cb">CTS::getHeaderLength</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the TS header's length </dd></dl>

</div>
</div>
<a class="anchor" id="afbc80cd2ae05bcff17c4a1d97e382a7c"></a><!-- doxytag: member="CTS::getPayload" ref="afbc80cd2ae05bcff17c4a1d97e382a7c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * <a class="el" href="class_c_t_s.html#afbc80cd2ae05bcff17c4a1d97e382a7c">CTS::getPayload</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to the TS payload </dd></dl>

</div>
</div>
<a class="anchor" id="a827113f9e16efa1cb2db742f2394414c"></a><!-- doxytag: member="CTS::getPayloadLength" ref="a827113f9e16efa1cb2db742f2394414c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a827113f9e16efa1cb2db742f2394414c">CTS::getPayloadLength</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the TS payload length </dd></dl>

</div>
</div>
<a class="anchor" id="a3a919f3c19d1ce352d544da4c64dfe5f"></a><!-- doxytag: member="CTS::getPayloadStartIndicator" ref="a3a919f3c19d1ce352d544da4c64dfe5f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a3a919f3c19d1ce352d544da4c64dfe5f">CTS::getPayloadStartIndicator</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the payload_unit_start_indicator field of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="a7c53d1c0ae7ad15d542a161aa9539522"></a><!-- doxytag: member="CTS::getPCR" ref="a7c53d1c0ae7ad15d542a161aa9539522" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long long <a class="el" href="class_c_t_s.html#a7c53d1c0ae7ad15d542a161aa9539522">CTS::getPCR</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the program_clock_reference_base field of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="a82299105546b28b4886d3ccdbf276de9"></a><!-- doxytag: member="CTS::getPID" ref="a82299105546b28b4886d3ccdbf276de9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_c_t_s.html#a82299105546b28b4886d3ccdbf276de9">CTS::getPID</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the PID field of the TS </dd></dl>

</div>
</div>
<a class="anchor" id="afe8671c58276fcaca8b8a343551a2010"></a><!-- doxytag: member="CTS::isNextTo" ref="afe8671c58276fcaca8b8a343551a2010" args="(int ContinuityCounter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_c_t_s.html#afe8671c58276fcaca8b8a343551a2010">CTS::isNextTo</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ContinuityCounter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ContinuityCounter-</td><td>the ContinuityCounter of the new TS. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 if the Continuity is maintained by the new TS ContinuityCounter ,0 otherwise </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_c_t_s_8h_source.html">CTS.h</a></li>
<li>CTS.cpp</li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_c_t_s.html">CTS</a>      </li>

    <li class="footer">Generated on Sat Feb 4 2012 15:52:58 for MpegDemultiplexer by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
